package yf.mall.vo.web;

import lombok.Data;
import yf.mall.entity.UserEntity;

@Data
public class UserDTO {

    private Long id;

    private String name;

    private String password;

    private String mobile;

    public UserEntity toUser(){
       UserEntity user = new UserEntity();
        user.setId(id);
        user.setName(name);
        user.setPassword(password);
        user.setMobile(mobile);
        return user;
    }

}
